<template>
  <div>
    <el-button type="info" plain @click="logout">信息按钮</el-button>
  </div>
</template>
<script>
export default {
  methods: {
    // 退出按钮的事件
    logout() {
      sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>
<style lang="less" scoped>
</style>
